<?php

namespace Admin\Controller;

use Think\Controller;
use Org\Net\Http;

class DietController extends Controller {
	/**
	 * 获取餐饮列表
	 */
	public function index() {
		$diet = D ( "Diet" );
		$list = $diet->select ();
		for($i = 0; $i < count ( $list ); $i ++) {
			$list [$i] ['image'] = split ( ",", $list [$i] ['image'] );
		}
		$this->assign ( 'list', $list );
		$this->display ();
	}
}